<?php
define('EZSITETPL_SOAP', 1);

include_once('config.php');

include_once('init.php');

$soap = new SoapServer('template.wsdl',
            array(
                'soap_version' => SOAP_1_2,
                'encoding' => 'UTF-8',
                'cache_wsdl' => WSDL_CACHE_NONE
            ));

/* Registe exported functions */
$soap->addFunction('getAvailableTpls');
$soap->addFunction('getTplCategories');
$soap->addFunction('getTplInfo');

$soap->addFunction('masterGetAvailableTpls');
$soap->addFunction('masterGetFeaturedTpls');

$soap->addFunction('getTplSampleData');
$soap->addFunction('getTplSampleData_SSv2');

$soap->handle();

mysqli_close($db);
